{*
 * Copyright (c) 2004-2006 OIC Group, Inc.
 * Written and Designed by James Hunt
 *
 * This file is part of Exponent
 *
 * Exponent is free software; you can redistribute
 * it and/or modify it under the terms of the GNU
 * General Public License as published by the Free
 * Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * GPL: http://www.gnu.org/licenses/gpl.txt
 *
 *}

<div class="">
	{include file="`$smarty.const.BASE`modules/common/views/_permission_icons.tpl"}
	<div class="itempermissions">	
		{permissions level=$smarty.const.UILEVEL_NORMAL}
		{if $newsitem->permissions.edit_item == 1}
			{if $newsitem->approved == 2} {* in ap *}
			<img class="mngmnt_icon" src="{$smarty.const.ICON_RELATIVE}edit.disabled.png" title="{$_TR.alt_edit_disabled}" alt="{$_TR.alt_edit_disabled}" />
			{else}
			<a class="mngmntlink news_mngmntlink" href="{link action=edit id=$newsitem->id}">
				<img class="mngmnt_icon" src="{$smarty.const.ICON_RELATIVE}edit.png" title="{$_TR.alt_edit}" alt="{$_TR.alt_edit}" />
			</a>
			{/if}
		{/if}
		{if $newsitem->permissions.delete_item == 1}
			{if $newsitem->approved == 2} {* in ap *}
			<img class="mngmnt_icon" src="{$smarty.const.ICON_RELATIVE}delete.disabled.png" title="{$_TR.alt_delete_disabled}" alt="{$_TR.alt_delete_disabled}" />
			{else}
			<a class="mngmntlink news_mngmntlink" href="{link action=delete id=$newsitem->id}" onclick="return confirm('{$_TR.delete_confirm}');">
				<img class="mngmnt_icon" src="{$smarty.const.ICON_RELATIVE}delete.png" title="{$_TR.alt_delete}" alt="{$_TR.alt_delete}" />
			</a>
			{/if}
		{/if}
		{/permissions}
	</div>
	<div class="contentpaneopen">
		{if $newsitem->title != ""}
			<h2 class="contentheading">
		<a href="{if $newsitem->isRss}{$newsitem->rss_link}{else}{link action=view id=$newsitem->id}{/if}" class="contentpagetitle">{$newsitem->title}</a>
	</h2>
		{/if}
		<div class="article-tools clearfix">
			<div class="article-meta">
				<span class="createdate">{$newsitem->datetime}</span>
				<span class="createby">{$newsitem->poster_name}</span>
			</div>
			<div class="buttonheading">
				<span>
				<a href="" title="Email" onclick=""><img src="{$smarty.const.THEME_RELATIVE}images/emailBut.png" alt="Email"  /></a>	</span>
				<span>
				<a href="" title="In" onclick="" rel="nofollow"><img src="{$smarty.const.THEME_RELATIVE}images/printBut.png" alt="In"  /></a>	</span>
				<span>
				<a href=""><img src="{$smarty.const.THEME_RELATIVE}images/pdf_butt.png" alt="PDF."  /></a>	</span>
			</div>

		</div>
		<div class="article-content">
			<img class="caption" src="{$smarty.const.BASE_URL}/{$newsitem->image}" border="1" align="left" style="padding: 0.5px; margin-right: 6px;" />
			<div>{$newsitem->body}</div>
		</div>

<span class="article_separator">&nbsp;</span>
	</div>
</div>
